package com.mhy.book.service.impl;

import com.mhy.book.mapper.BookMapper;
import com.mhy.book.mapper.impl.BookMapperImpl;
import com.mhy.book.mapper.impl.BookMapperImpl2;
import com.mhy.book.service.BookService;
import lombok.Setter;


@Setter
public class BookServiceImpl implements BookService {


    BookMapper bookMapper;
    String name;

    public void setBookMapper(BookMapper bookMapper) {
        this.bookMapper = bookMapper;
    }

    //BookMapper bookMapper = new BookMapperImpl();
    //BookMapper bookMapper2 = new BookMapperImpl2();
    @Override
    public void queryBook() {
        System.out.println(this.name);
        System.out.println("booksss");
        String res = bookMapper.selectById(1);
        System.out.println(res);
    }
}
